Part Number Hot Search : 
9S12G HCF4081 248YF 8BCPZR RK08H1 70400 658C3C3 SMAJ16A
Product Description
Full Text Search
 

To Download TN0837 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  september 2013 doc id 022359 rev 2 1/11 TN0837 technical note spc560p34x/spc560p40x serial boot with autobaud autoscan reference manual addendum introduction the aim of this document is to give a supplementary description for serial boot modes in addition to the description in rm0046, rev. 3 (see section appendix a ). it is described the hardware configuration to allow the right selection of the serial boot mode with autobaud by means of autoscan and the rx pins configuration of serial communication peripherals (flexcan and linflex).
contents spc560p34x, spc560p40x 2/11 doc id 022359 rev 2 contents 1 hardware configuration to select boot mode . . . . . . . . . . . . . . . . . . . . . 5 1.1 spc560p34x/spc560p40x boot pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.2 autobaud feature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 appendix a reference document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
spc560p34x, spc560p40x list of tables doc id 022359 rev 2 3/11 list of tables table 1. hardware configuration to select boot mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 table 2. spc560p34x/spc560p40x boot pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 table 3. document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
list of figures spc560p34x, spc560p40x 4/11 doc id 022359 rev 2 list of figures figure 1. bam autoscan code flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
spc560p34x, spc560p40x hardware configuration to select boot mode doc id 022359 rev 2 5/11 1 hardware configuration to select boot mode the spc560p34x/spc560p40x devices detect the serial boot mode based on external pins. to enter boot mode via flexcan or linflex, the device must be forced into an alternate boot loader mode via the fab (force alternate boot mode), which must be asserted before initiating the reset sequence. the type of alternate boot mode is selected according to the abs (alternate boot selector) pins (see ta ble 1 ). boot configuration pins are: pad a[2] - abs[0], pad a[3] - abs[1], pad a[4] - fab note: pad a[2] - abs[0] is not bonded on spc560p34x/spc560p40x lqfp64 so for this package the option 'flexcan without autobaud ' is not available and the internal pull-down on pad a[2] assures that it is at low logical value at reset." 1.1 spc560p34x/spc560p40x boot pins the tx/rx pin (linflex_0 and flexcan_0) used for serial boot and configuration boot pins to select the serial boot mode are described in the ta ble 2 for lqfp64 and lqfp100 packages. table 1. hardware configuration to select boot mode fab (1) 1. during reset the boot configuration pins are weak pull down. abs[1,0] standby-ram boot flag boot id boot mode 1 00 0 - serial boot via linflex without autobaud 1 01 0 - serial boot via flexcan without autobaud 1100- scan of both serial interfaces (flexcan and linflex) for serial boot with autobaud table 2. spc560p34x/spc560p40x boot pins port pin function pin 64-pin 100-pin a[2] (1) abs[0] - 57 a[3] (1) abs[1] 41 64 a[4] (1) fab 48 75 b[0] can_0 tx 49 76 b[1] can_0 rx 50 77 b[2] lin_0 tx 51 79
hardware configuration to select boot mode spc560p34x, spc560p40x 6/11 doc id 022359 rev 2 1.2 autobaud feature spc560p34x/spc560p40x devices implement the autobaud feature via flexcan or linflex selecting the active serial communication peripheral by means of an autoscan routine. when autobaud configuration is selected by abs and fab pins, the autoscan routine starts and listens to the active bus protocol. initially the linflex_0 rx pin and flexcan_0 rx pin are configured as gpio inputs: for lqfp100 internal weak pull-up enabled for both rx pins, for lqfp64 internal weak pull-up enabled only for flexcan_0 rx pin. the autoscan routine waits in polling for the first low level to select which routine will be executed: flexcan autobaud routine linflex autobaud routine then the measurement baud rate is computed to configure the serial communication at the right rate. in the end of baud rate measurement, linflex_0 rx pin and flexcan_0 rx pin switches to work as dedicated pin. baud rate measurement is using the system timer module (stm) which is driven by the system clock. measurement itself is performed by software polling the related inputs as general purpose io?s, resulting in a detection granularity that is directly related to the execution speed of the software. one main difference of the autobaud feature is that the system clock is not driven directly by the external oscillator, but it is driven by the fmpll output. the reason is that to have an optimum resolution for baud rate measurement, the system clock needs to be nearer to the maximum allowed device?s frequency. this is achieved with the following two steps: 1. using the clock monitor unit (cmu) and the internal rc oscillator (irc), the external frequency is measured using the irc as reference to determine this frequency. 2. based on the result of this measurement, the fmpll is programmed to generate a system clock that is configured to be near, but lower, to the maximum allowed frequency. after setting up the system clock, the bam autoscan code configures the flexcan rx pin (b[1] on all packages) and linflex rx pin (b[3] on lqfp100 or b[7] on lqfp64) as gpio inputs and searches for flexcan rx pin level to verify if can is connected or not. b[3] (2) lin_0 rx - 80 (2) b[7] (3) lin_0 rx 20 (3) 29 1. weak pull down during reset. 2. spc560p34x/spc560p40x lqfp1 00 package uses only pad b[3] - pin 80 for boot via linflex 3. spc560p34x/spc560p40x lqfp64 package uses only pad b[7] - pin 20 for boot via linflex table 2. spc560p34x/spc560p40x boot pins (continued) port pin function pin 64-pin 100-pin
spc560p34x, spc560p40x hardware configuration to select boot mode doc id 022359 rev 2 7/11 then continuously waits in polling on change of rx pins level.the flexcan rx pin level takes precedence. first signal found at low level selects the serial boot routine that will be executed. in case a low level is detected on any input, the corresponding autobaud measurement functionality is started: when flexcan rx (corresponds to pin b[1]) level is low, the can autobaud measurement starts and then sets up the flexcan baud rate accordingly; when uart rx (corresponds to pin b[3] on lqfp100 or b[7] on lqfp64) level is low, the uart autobaud measurement starts and then sets up the linflex baud rate accordingly. after performing the autobaud measurement and setting up the baud rate, the corresponding rx input is reconfigured and the related standard download process is started; in case of a detected can transmission a download using the can protocol as described in section ?bootstrap with flexcan? autobaud disabled?of rm0046, rev. 3 (see section appendix a ), and in case of a detected uart transmission a download using the uart protocol as described in section? boot from uart? autobaud disabled? of rm0046, rev.3 (see section appendix a ). the following figure 1 identifies the corresponding flow and steps. note: when autobaud scan is selected, initially both linflex_0 rx pin and flexcan_0 rx pin should be at high level. no external circuity should pull-down them to allow right autoscan.
hardware configuration to select boot mode spc560p34x, spc560p40x 8/11 doc id 022359 rev 2 figure 1. bam autoscan code flow flexcan rx and linflex rx configured as gpio inputs flexcan rx == 1 flexcan rx == 0 linflex rx == 0 can autobaud set matching baud rate for flexcan autobaud measurement continue with flexcan linflex autobaud set matching baud rate for linflex autobaud measurement download continue with linflex download no yes detected detected linflex rx == 0 detected both rdx pins have to be at high level. avoid to connect them to external pull-down resistor. if can is connected, after reset can_rx has to be at high level
spc560p34x, spc560p40x reference document doc id 022359 rev 2 9/11 appendix a reference document 1. spc560p34/spc560p40 32-bit mcu family built on the embedded power architecture ? (rm0046, rev.3 - doc id 16912)
revision history spc560p34x, spc560p40x 10/11 doc id 022359 rev 2 revision history table 3. document revision history date revision changes 12-oct-2011 1 initial release. 18-sep-2013 2 updated disclaimer.
spc560p34x, spc560p40x doc id 022359 rev 2 11/11 please read carefully: information in this document is provided solely in connection with st products. stmicroelectronics nv and its subsidiaries (?st ?) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described he rein at any time, without notice. all st products are sold pursuant to st?s terms and conditions of sale. purchasers are solely responsible for the choice, selection and use of the st products and services described herein, and st as sumes no liability whatsoever relating to the choice, selection or use of the st products and services described herein. no license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. i f any part of this document refers to any third party products or services it shall not be deemed a license grant by st for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoev er of such third party products or services or any intellectual property contained therein. unless otherwise set forth in st?s terms and conditions of sale st disclaims any express or implied warranty with respect to the use and/or sale of st products including without limitation implied warranties of merchantability, fitness for a particular purpose (and their equivalents under the laws of any jurisdiction), or infringement of any patent, copyright or other intellectual property right. st products are not designed or authorized for use in: (a) safety critical applications such as life supporting, active implanted devices or systems with product functional safety requirements; (b) aeronautic applications; (c) automotive applications or environments, and/or (d) aerospace applications or environments. where st products are not designed for such use, the purchaser shall use products at purchaser?s sole risk, even if st has been informed in writing of such usage, unless a product is expressly designated by st as being intended for ?automotive, automotive safety or medical? industry domains according to st product design specifications. products formally escc, qml or jan qualified are deemed suitable for use in aerospace by the corresponding governmental agency. resale of st products with provisions different from the statem ents and/or technical features set forth in this document shall immediately void any warranty granted by st for the st product or service described herein and shall not create or extend in any manner whatsoev er, any liability of st. st and the st logo are trademarks or register ed trademarks of st in various countries. information in this document supersedes and replaces all information previously supplied. the st logo is a registered trademark of stmicroelectronics. all other names are the property of their respective owners. ? 2013 stmicroelectronics - all rights reserved stmicroelectronics group of companies australia - belgium - brazil - canada - china - czech republic - finland - france - germany - hong kong - india - israel - ital y - japan - malaysia - malta - morocco - philippines - singapore - spain - swed en - switzerland - united kingdom - united states of america www.st.com


▲Up To Search▲   

 
Price & Availability of TN0837

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X